package com.upcode.weighing.vo.req.pc;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author liqi
 * @Description:
 * @date 2018/5/4/00416:03
 */
public class SysDictEditVo implements Serializable {

    @NotNull(message = "字典ID不能为空！")
    private Long id;
    /**
     * 类型ID
     */
    @NotNull(message = "字典类型不能为空！")
    private Long typeId;
    /**
     * 排序
     */
    private Integer sortNum;
    /**
     * 字典名称
     */
    @NotEmpty(message = "字典名称不能为空！")
    @Length(max = 20)
    private String name;
    /**
     * 字典值
     */
    @NotEmpty(message = "字典值不能为空！")
    @Length(max = 20)
    private String value;

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public Integer getSortNum() {
        return sortNum;
    }

    public void setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}
